import request from '@/utils/request'

// 获取 限销配置 列表
export function listLimitConfig (params) {
  return request({
    url: `/limit/config`,
    method: 'get',
    params: params
  })
}

// 获取 限销区域 列表
export function listLimitRegion (limitConfigId, params) {
  return request({
    url: `/limit/config/${limitConfigId}/regions`,
    method: 'get',
    params: params
  })
}

// 获取 限销详情 列表
export function listLimitItem (limitConfigId, params) {
  return request({
    url: `/limit/config/${limitConfigId}/items`,
    method: 'get',
    params: params
  })
}
